using System;
using System.Globalization;
using System.Windows.Data;

namespace MediaAssistant.Converters
{
    public class NightOpacityToTextConverter:IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var opacity = (double)value;
            return string.Format("<- {0}% ->", System.Convert.ToInt32(opacity*100));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}